<?php

namespace common\addons\diandi_shop\models;

use Yii;

/**
 * This is the model class for table "dd_goods_image".
 *
 * @property int $id
 * @property int $goods_id
 * @property int $image_id
 * @property int $wxapp_id
 * @property int $create_time
 */
class DdGoodsImage extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'dd_goods_image';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['goods_id', 'image_id', 'wxapp_id', 'create_time'], 'integer'],
            [['image_id'], 'required'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'goods_id' => 'Goods ID',
            'image_id' => 'Image ID',
            'wxapp_id' => 'Wxapp ID',
            'create_time' => 'Create Time',
        ];
    }
}
